//: Playground - noun: a place where people can play

import UIKit
import SnapKit
import PlaygroundSupport

let content_V = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 320))

content_V.backgroundColor = UIColor.white

PlaygroundPage.current.liveView = content_V

let sub_v = UIView()
sub_v.backgroundColor = UIColor.red
content_V.addSubview(sub_v)

sub_v.snp.makeConstraints { make in
    make.center.equalToSuperview()
    make.left.equalTo(150)
    make.height.equalTo(sub_v.snp.width).offset(-10)
}

let test_Lb = UILabel()
test_Lb.text = "sdfd"
test_Lb.backgroundColor = UIColor.gray
content_V.addSubview(test_Lb)

test_Lb.snp.makeConstraints { make in
    make.top.equalTo(100)
}